send_data = [
    '0001',
    '0005',
    '013966668888',
    '0009',
    'ffff',
    'eeee',
    '00'
]
send_data_half= {
        "Method": "put",
        "Uri": "/api/config/instruction",
        "Content-Type": "application/x-www-form-urlencoded",
        "SendData": {
            "appId": "TQ",
            "cmdCode": "WAKEUP",
            "cmdId": "0001",
            "imei": "013966668888",
            "platform": "TQ",
            "proNo": 0x8103,
            "requestId": "0008",
            "sendTime": "1623741522000",
            "sender": "test-ht",
            "taskId": "0001",
            "timeOut": "10",
            "userId": "343222",
            "offLineFlag": False,
            "offLineInsType": "normalIns"
        }
}
response=[
    '00000001010100000015'
]

def count_my(list_val):
    num = 0
    for i in range(0, len(list_val)):
        num = num + len(list_val[i])
    l_len =int( num / 2)
    print('消息体长度为：', hex(l_len)[2:].zfill(4),'\n字节长度：',l_len)

if __name__=='__main__':

    count_my(response)
    l='1546c6d5a6f6949'
    s='1546c6d5a6f6949'
